“On a return to custody following release from a detention and training order, the period of the ‘remainder of the term’ was to be calculated from the date when it was proved to the satisfaction of the youth court that an offender had failed to comply with the requirements of the supervision element of the order.”