Work completes on £5m redevelopment of listed York building