Observation of the Higgs boson decay to a pair of tau leptons with the CMS detector