A council-owned building in Wakefield city centre which dates back to the Tudor period has been put up for sale.