P&G, Unilever and Mondelez are using AI to formulate products and run campaigns, compressing timelines that once took years into weeks.