Activity at China's factories slowed in December but still represented the fifth consecutive month of expansion.