Trust-Aware Resilient Control and Coordination of Connected and Automated Vehicles