Measurement of the properties of a Higgs boson in the four-lepton final state