Torrential rain has been causing havoc along the Pacific coast side of South America, with flooding causing the deaths of ast least six people in Peru.