On and after July 1, 1979, no person under the age of eighteen shall be committed, admitted or transferred to any state hospital for mental illness, as defined in § 17a-495, other than a hospital administered by the Commissioner of Children and Families.