Carlos Alcaraz has secured the year-ending No. 1 ranking in men's tennis by defeating Lorenzo Musetti at the ATP Finals.