A functional cerebral endothelium is necessary to protect against cognitive decline