Cost of data breaches increasing to average of $3.8 million, study says