Torrential rains left at least 324 people dead, and hundreds of thousands more have been made homeless.