Harrogate man jailed for breaching restraining order