A recent study could help explain why, as the years go by, women tend to stay mentally sharper than men.