C3.ai Inc., a maker of data analysis software, is cutting about a quarter of its workforce after the appointment of a new chief executive officer.