An 82-year-old woman in hospital becomes acutely confused and agitated over several hours. She is disorientated and has visual hallucinations. Her daughter reports that she was cognitively normal before admission yesterday with a urinary tract infection. What is the most likely diagnosis?