Boroughbridge man admits drug-related offences