Historic building in the centre of Cardiff is getting a £10m revamp