Cognitive failure in patients with terminal cancer: A prospective study