Thai authorities have warned of more rain and flash flooding as the death toll from floods since mid-September has risen to 31