Resonant production of dark photons in positron beam dump experiments