Older half of Ripon Leisure Centre ‘would have to close for good’ without £3.5m groundworks