Delegation in a general equilibrium model of customs unions