Deadly floods have killed more than 20 people in Thailand’s southern provinces and at least seven in Malaysia. Thousands more have been displaced.