UNFI, a grocery distributor for Whole Foods and others, warned of disruptions to customer orders after a cyberattack.