Thailand bans big gatherings as it moves to stop protests