The US president, Joe Biden, has declared an emergency in California as wildfires devastate four neighbourhoods in Los Angeles.