Gartner’s stock suffered its worst day since 1999, as a historic drop in CEO confidence led the IT consultant to cut its revenue outlook.