Mayweather outlasts Alvarez to win majority decision