The influence of age on the association between cholesterol and cognitive function