Krispy Kreme confirmed that a cyberattack has caused significant operational disruptions, including issues with online ordering in the US.