Harrogate man admits crack cocaine charge