People’s United Bank has reached an agreement with Stop & Shop to retain 27 in-store branch and corresponding ATM locations in Connecticut.