A long-empty and vandalised town centre building has been restored following council enforcement action against Asda.