After a blistering heat wave, a dousing of heavy rain this week caused flooding across the region. Experts said it could have been worse.