From hacks to human errors, data breaches are costing companies millions.