Chinese factory output, retail sales slow sharply