Southern California was hit by its first tropical storm in nearly a century, as an earthquake jolted the region.