Cognitive impairment and associated risk factors among aged community members