Resonant diffusion in periodic systems with memory