Hamilton’s first pole position in 1,197 days was undone on the opening lap as Leclerc charged through.