A 79-year-old man with dementia develops fluctuating confusion, inattention and visual hallucinations after being admitted with pneumonia. He is agitated at night and attempting to climb out of bed. Which of the following is the most appropriate first-line management of his delirium?