Networks, Frictions, and Price Dispersion