The Role of Artificial Intelligence in Detecting and Preventing Malware: A Comprehensive Overview