"a children s court may at the commencement of a proceeding or at any stage of the proceeding order that legal representation be provided for a child at the expense of the state should the children s court consider it to be in the best interest of such child"