Federated Learning for Connected and Automated Vehicles