Search for Higgs and Z boson decays to J/psi or Y pairs in the four-muon final state in proton-proton collisions at root s=13 TeV