Much loved Harrogate headteacher retires after 18 years