Tech group’s capital spending surges to $23bn in attempt to clear capacity constraints