How might the ethical principle of beneficence be applied in treating a patient with obsessive-compulsive disorder?