University of Warwick real-time study shows how ‘mental defeat’ drives suffering and causes people with chronic pain to withdraw from everyday activities.