Search for resonance decays to lepton plus jet at DESY HERA and limits on leptoquarks