General practitioners' detection of depression and dementia in elderly patients