Whenever any person under twenty-one years of age has been arrested, charged with the commission of an offense punishable in any court of the United States or of the District of Columbia, and, after investigation by the Department of Justice, it appears that such person has committed an offense or is a delinquent under the laws of any State or of the District of Columbia which can and will assume jurisdiction over such juvenile and will take him into custody and deal with him according to the laws