A 92-year-old woman is evaluated for urinary incontinence. Six months ago, the patient occasionally lost control of small amounts of urine, which was managed with an adult diaper. At present, the patient seems to have lost the ability to recognize that she needs to urinate until it is too late to reach the bathroom. There have been no recent noticeable changes in cognition. Medical history is significant for dementia treated with donepezil. On physical examination, vital signs are normal. The patient appears frail. She is not oriented to place or time. Gait is stable and narrow based. She is slow to rise from a chair, and she requires the arm rests to get up. What is the most appropriate treatment?