The acquisitions are part of Linear Retail’s strategy to expand its portfolio in Somerville and Cambridge.