Search for massive resonances decaying into WW, WZ or ZZ bosons in proton-proton collisions at sqrt(s) = 13 TeV