A measurement of the Higgs boson mass in the diphoton decay channel