At least 20 people have died in the past week as torrential rain batters swathes of China, with at least six killed by lightning, thousands of homes destroyed and more than 300,000 evacuated, state media said.