Search for massive resonances decaying into WW, WZ, ZZ, qW, and qZ with dijet final states at sqrt s =13 TeV