Influence of education and depressive symptoms on cognitive function in the elderly