China output moderates, factory inflation slows