Heavy rain and thunderstorms have lashed parts of China, bringing some relief from the summer heat, but also causing water logging and traffic disruption.