A 72 year old man on the medical ward becomes acutely confused, agitated and attempts to climb out of bed at night. He was previously orientated. He is febrile with a temperature of 38.3 degrees Celsius, pulse 110 beats per minute and respiratory rate 24 per minute. His Mini Mental State Examination score is 21 out of 30 and fluctuates. What is the most likely diagnosis?