Cognitive behavioural therapy (CBT) can help you understand how your thoughts and actions affect the way you feel.