New data has revealed youth detention figures in New South Wales are on the rise after a decade-long decline.