China’s factory output expanded by 5.7% in July compared with a year earlier, the smallest increase in eight months