Lewis Hamilton has taken provisional pole position for the Mexican Grand Prix for Ferrari ahead of George Russell and Charles Leclerc.