Intel CEO Pat Gelsinger has retired, the struggling chipmaker said Monday in a surprise announcement.