Section 8. The attorney general shall enforce the due application of funds given or appropriated to public charities within the commonwealth and prevent breaches of trust in the administration thereof.