Measurements of Higgs boson properties using the diphoton decay channel with the Compact Muon Solenoid experiment