Influence of cosmic-ray variability on the monsoon rainfall and temperature