Sir Keir Starmer has said the Treasury will be "ruthless" in cutting government spending as market turbulence continues.