Effect of nutritional risk on cognitive function in patients with chronic obstructive pulmonary disease