Correlation functions and relaxation properties in chaotic dynamics and statistical mechanics