Plans to alter listed building in Ripon rejected