The Efficiency of Investment in the Presence of Aggregate Demand Spillovers