Carlos Alcaraz secured the year-ending No 1 ranking in men's tennis on Thursday by beating Lorenzo Musetti to sweep his group at the ATP Finals.