Search for heavy resonances decaying to a photon and a hadronically decaying Z /W /H boson in pp collisions at sqrt(s) =13 TeV with the ATLAS detector