Search for rare decays of $$\mathrm Z$$ Z and Higgs bosons to $$\mathrm J/\psi $$ J/ ψ and a photon in proton-proton collisions at $$\sqrts$$s= 13 $$\,\text TeV$$TeV