Pātuhitia tēnei: Madness in medieval law and custom