Tunisian president sacks prime minister and freezes parliament