Sayyiduna Umar bin Khattab (may Allah be pleased with him) said: "When a madman behaves indecently with his wife, his guardian will be ordered to divorce her." Abu Hudhayfah has corroborated it, narrating the like of it from Sufyan.