Thousands affected by heavy rains, floods and landslides