Local measures enable COVID-19 containment with fewer restrictions due to cooperative effects