Iran was behind the hacking attack on European fridges and freezers, according to the French authorities.