Long-time tails of correlation and memory functions