Former Harrogate headteacher 'repeatedly accessed' website with indecent images, court hears