Modeling the effects of rainfall on vehicular traffic