Judge brands ex-Harrogate council officer 'thoroughly dishonest'