The amount of money the Treasury rakes in from both stamp duty land tax and inheritance taxis on the rise, official figures show.