Phil Mickelson produced a storming finish to win his first Open Championship by three shots as Lee Westwood suffered more major heartbreak.