New Balance Athletics, the Boston-based sportswear manufacturer, plans to close its factory in the city’s Brighton neighborhood.