These are the factors that determine the cost of a breach, along with advice for minimizing their impact