REDUCR: Robust Data Downsampling using Class Priority Reweighting