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