Observation of the diphoton decay of the Higgs boson and measurement of its properties