Education may benefit the heart as well as the brain, especially if you are female, new research suggests.