Stress relaxation in the earth and seismic activity