Here are the risk factors that determine whether you’re more or less likely to develop cognitive decline