Percolation threshold determines the optimal population density for public cooperation | Synapse