The UK economy picked up more than expected in July, dampening fears that it will succumb to its first recession since the financial crisis as the Brexit crisis escalates. 

Economic output in July alone was 0.3% higher than in June, the Office for National Statistics said.

This marked the biggest rise since January and it topped all forecasts in a Reuters poll of economists that had pointed to a 0.1% increase. 

The pound inched higher against the dollar on the figures, which showed the expansion was driven by the dominant services sector - although the ONS said the underlying picture showed its growth weakening through 2019. 

The world's fifth-biggest economy shrank in the second quarter, a hangover from a stockpiling boom in advance of the original March Brexit deadline. 

While most economists think modest growth will return in the current quarter, a slew of downbeat surveys has shown business activity wilting during the Brexit crisis, especially in August. 

They point to a risk that the economy will contract again, which would officially herald a recession. 

The ONS said gross domestic product in the three months to July was flat compared with the previous three-month period. A Reuters poll of economists had pointed to a 0.1% contraction.

Last month, the Bank of England forecast that economic output would grow 0.3% in the third quarter, although its forecast for zero growth in the second quarter proved to be too optimistic. 

Besides the political crisis at home, the outlook for the economy has dimmed further because of trade tensions between the US and China.

Last week's data showed the services sector, which accounts for almost 80% of British economic output, expanded 0.3% in July after four months of stagnation, the biggest upturn since November 2018. 

UK manufacturing output increased unexpectedly last month, rising 0.3% in monthly terms, while the construction industry also fared better than expected, posting a 0.5% rise in output. 

Separate figures showed the goods trade deficit increased in July to £9.144 billion from £8.920 billion in June, although this was still a little less than the £9.55 billion deficit economists had forecast.