Association between lack of care in childhood and cognitive impairment in middle-aged and elderly population