California is under a state of emergency after days of rain as whole communities have been inundated with severe weather.