Ten thousand affected by heavy rains