Behavioural psychologist Professor Theresa Marteau wants to understand why, despite the best of intentions, so many people fail to adopt healthier lifestyles. She talks to Jim Al-Khalili about her life and work and why, after studying the evidence, she changed her mind about how to change people's behaviour