Record number of people waiting on remand in New South Wales