Rains and the emptying of a dam cause flooding in Thailand