Tunisian prime minister pledges to quit politics