Mega hacks like the Capital One data breach are inevitable—here’s how to deal with them