Heavy rains make thousands homeless