Observation of Z decays to four leptons with the CMS detector at the LHC