A 79-year-old man in hospital becomes acutely confused overnight. Nurses report that he is trying to climb out of bed and pulling out cannulas. He is normally independent and oriented. He has a urinary catheter and a new temperature of 38.5°C. What is the most likely diagnosis?