Performance on three cognitive tasks by patients with dementia, depression or Korsakov's syndrome.