Supermarkets in at least 12 European countries were hit by cyberattacks in October and November, with France the worst affected.