A Mechanism for the Allocation of Corporate Investment