China's producer price inflation accelerated more than expected to a four-month high in August.