Hazrat Ata (may Allah have mercy on him) says that the guardian of a madman can give divorce on his behalf, but he should wait for him to recover.