South Korea's factory output falls in warning for global economy