The association between undiagnosed diabetes and cognitive function: findings from the China health and retirement longitudinal study