Exercise may be as good at treating depression as psychological therapies and possibly antidepressants, a study suggests.