Thermoremanent phenomena in disordered systems