China's industrial output grew the fastest in five months in August as demand for products rebounded.