Thai PM barred from politics, three parties dissolved