Territorial differences in the spread of COVID-19 in European regions and US counties