A phenomenological theory of thermally stimulated relaxation