China’s investment and factory output growth missed forecasts in August, suggesting the economy has cooled further.