Antivirus software can block scams, malware and ransomware. Here’s what to check before you choose protection for your device.