Endogenous Market Structure and the Business Cycle