What companies can learn from 2017’s top tech scandals