Phil Mickelson regrouped from a dramatic final-hole blunder to win the Scottish Open after a play-off at Castle Stuart on Sunday.