Jon Rahm survived a rocky back nine and a late penalty to win the Memorial and move to world No. 1 for the first time in his career.