There's a cheap and cheerful hotel about halfway between the course that I've stayed in and it was OK.
I booked through hotels.com (and got cashback on it too via topcashback.co.uk) it's called Elmbank Hotel and the address is The Mount, York, YO24 1GE.
It's not the Ritz but it's in a good...