You are asked to review a 70 year old gentleman who has recently been admitted to hospital generally unwell and is being treated for a UTI. His daughter tells you over the past few days he has been intermittently confused particularly at night and on a couple of occasions appeared to see people who weren't there. What is the most likely cause for his confusion?