Factory headcount falls for the first time in 30 months in August, though the decline was only marginal