Atomic memory based on recoil-induced resonances