Teams are pouring money into AI and other tech while underinvesting in the foundations necessary to deliver ROI, experts say.