Chinese factory activity contracts in October as pandemic recovery falters