Glastonbury Festival is supporting charities with a record-breaking £5.9 million, its organisers have announced.