The pound fell by a third of a cent to below $1.29 following the news.

Head of GDP at the ONS Rob Kent-Smith said: "GDP slowed in the last three months of the year with the manufacturing of cars and steel products seeing steep falls and construction also declining.

"However, services continued to grow with the health sector, management consultants and IT all doing well."

Analysis:

By Andy Verity, BBC economics correspondent

Image copyrightGetty Images

A slowdown was expected. But the economy has hit the brakes harder than economists thought it would.

Growth over the quarter was weaker than the 0.3% anticipated. And over the month the numbers look positively worrying.

According to the ONS estimates, gross domestic product fell in December by 0.4%.

That included a drop in services activity (restaurants and retail etc), which is estimated to have fallen by 0.2% on the month.

This is the only time since 2012 that services, construction and production all fell.

While that chimes in with the gloomy picture painted by, for example, retailers' company results, it's not by any means a certain sign we are entering a new recession.

This is only the first estimate by the ONS; the figures are provisional and are often revised when the second and third, more accurate figures arrive.

You can't be sure you should worry about the state of economic growth. But then again, you can't be sure you shouldn't.

Which sectors are struggling?

The ONS said the figures reflected a slowdown across a number of industries, as Brexit-related concerns weighed on business spending decisions.

In the final quarter of last year, it found car manufacturing declined at its steepest rate in just under a decade, slipping 4.9%.

Construction fell 0.3% while business investment dropped 1.4%.

While Britain's dominant services sector continued to expand, growth slowed to 0.4% following a strong performance during the summer.

The 1.4% growth figure for 2018 was the lowest since 2012, when the economy also grew by 1.4%. The last time the economy performed worse than this was in 2009, when it contracted by 4.2%.

Is Brexit to blame?

Tej Parikh, senior economist at the Institute of Directors, said the continuing uncertainty around Brexit was the "prime suspect" behind weaker economic activity.

"There is currently a drag on growth as some businesses are forced to hold back on major investments and engage in cautionary stockpiling."

Ben Brettell, senior economist at Hargreaves Lansdown, said: "There's little doubt Brexit uncertainty is responsible for the disappointing numbers, though concerns over global trade will also have played a part."

Is a recession ahead?

Last week, the Bank of England forecast growth this year will be 1.2% - the slowest since 2009 when the economy was in recession.

It blamed Brexit concerns as well as slower-than-expected growth in the eurozone and China.

It even sees a one-in-four chance of the economy slipping into recession in the second half of this year.

But Samuel Tombs, chief UK economist at Pantheon Macroeconomics, said an impending downturn was unlikely.

"On the face of it, the sharp fall in GDP in December looks alarming, but it isn't unprecedented... and it was driven by sectors which have historically been volatile."

Paul Dales, chief UK economist at Capital Economics, said: "There's little hope of a rebound early this year. But if there's a silver lining, it's that a lot of the activity put on hold ahead of Brexit could be released once - or if - a deal is done."

What's going on with UK trade?

Separately, the ONS published figures showing the UK's trade deficit, including goods and services, widened slightly in the last three months of the year by £900m to £10.4bn.

It blamed a rise in goods imports including cars and chemicals.

Suren Thiru, head of economics at the British Chambers of Commerce (BCC), said it was further evidence that "slowing global growth and continued uncertainty over Brexit are making trading conditions for UK exporters more challenging".