(4)Money when paid in under this section shall be invested in the purchase of Government securities, which, with the interest thereon, shall be transferred or paid to the person entitled thereto, or otherwise applied for his benefit, as the Judge or the Court of Wards, as the case may be, may direct.