Hg Capital will buy The Foundry from Carlyle in a deal valuing the effects producer at £200m, Sky News learns.