Companies are struggling to keep up with an evolving patchwork of laws and regulations around privacy and cybersecurity, even as enforcement actions over data breaches and privacy violations ramp up.