Thailand bans gatherings to end pro-democracy protests