A new study shows seven heart-healthy habits can lower your chances of developing dementia down the road.