Search for a massive resonance decaying into a Higgs boson and a W or Z boson in hadronic final states in proton-proton collisions at s = 8 $$ \sqrts=8 $$ TeV