Tropical storm Hilary battered parts of Mexico before moving into Southern California, bringing heavy rain, flooding and the potential for devastating mudslides in some regions.