Thai PM offers elections as opposition MPs quit en masse