South Korea's factory activity shrinks at slowest pace in six months, but virus looms