Search for massive resonances decaying into WW, WZ or ZZ bosons in proton-proton collisions at $\sqrts = $ 13 TeV