Residents vacated high-rise buildings and hotels in the Thai capital after tremors caused structures to sway