China’s factory recovery moderates as higher costs slow business