Search for pair-produced resonances decaying to quark pairs in proton-proton collisions at sqrt(s) = 13 TeV