Days of heavy rainfall in California have caused flooding and mudslides, leaving infrastructure damaged.