Segundo Judith Beck (1997), a terapia cognitiva