US factories grew more slowly in October