Occurrence of cognitive impairment and depressive symptoms among the elderly in a nursing home facility