Government rejects plans to build 170 homes in Knaresborough