The world’s tech epicenters are facing fresh competition for talent and investment