Search for dijet resonances in proton-proton collisions at root s=13 TeV and constraints on dark matter and other models