Phelps wins gold in final individual race in London