Section 16. All moneys received by the city or town under this chapter shall be deemed to be trust funds to be held and applied solely as provided in this chapter.