Search for light resonances decaying to boosted quark pairs and produced in association with a photon or a jet in proton-proton collisions at root s=13 TeV with the ATLAS detector