How does cognitive behavioral therapy work?