Cognitive behavioral therapy is an evidence-backed way to address unwanted thoughts and habits and improve relationships. Here's how it can help you.