All money paid into court shall be held in the custody of such officer, shall be invested in such manner, and shall be withdrawn from deposit, as shall be prescribed by general rules. Any such investment, except as otherwise prescribed by or pursuant to general rules, shall be restricted to obligations of the United States or the United States Treasury, or of the Commonwealth.
42 Pa.C.S. § 3561