The photon PDF from high-mass Drell–Yan data at the LHC