Max Verstappen took advantage of an early tussle between Ferrari's Lewis Hamilton and Charles Leclerc to clinch victory at the Mexico City Grand Prix.