South Korea struggles to contain wildfires that have killed at least 27