Federated learning at the edge may out-compete the cloud on privacy, speed and cost