Investment and market structure in industries with congestion