Study: cognitive therapy as good as medication, but lasts longer