Growth in the UK's economy slowed in the third quarter amid uncertainty surrounding the Labor Party's budget and the impact of high interest rates on business and consumer spending.