Tens of thousands of people are being urged to leave their California homes as rainstorms cause flooding.