Four local banks closed or relocated branches in Massachusetts last month as they adjust their local footprints.