Prevalence and severity of cognitive impairment with and without dementia in an elderly population