Thermoelastic diffusion with memory-dependent derivative