B2B and B2C companies increase AI investment as agentic commerce gains traction