I can't see anything in the legislation to deal with a councillor's mental competence. So it appears that, formally, the answer is nothing. Reasonable behaviour at meetings can be enforced through standing orders, and persistent breach of them can be dealt with by exclusion from the meeting.