Search for narrow high-mass resonances in proton-proton collisions at sqrt(s) = 8 TeV decaying to a Z and a Higgs boson