Wildfires rage across California threatening thousands of homes