Slaveowners were paid compensation to the equivalent of £340 billion from the public purse, which entrenched their power.