Endogenous local interaction and multi-product firms