A Study on the Effectiveness of Machine Learning Techniques to Detect and Prevent Zero-Day Cyberattacks