Max Verstappen put his Red Bull on pole, with Lewis Hamilton only fourth behind McLaren's Lando Norris and Sergio Perez.