Tesla said on Wednesday it would hike capex spending this year to over $25 billion as it doubles down on Musk's aggressive pivot to AI and robotics.