Arresting children should be ‘a last resort’: UN