Data-driven mitigation of false data injection cyberattacks in networked control systems