AI-Powered Anomaly Detection with Blockchain for Real-Time Security and Reliability in Autonomous Vehicles