Eastern Afghanistan and neighbouring Pakistan have been hit by torrential rain, causing floods which have killed at least 80 people.