A driver had a “lucky escape” after their car aquaplaned and flipped on a dual carriageway.