Charity wing agrees to write off €3m Central Remedial Clinic loan