The number of takeover deals involving UK companies plunged at the end of last year, according to official data, as companies battled with uncertainty over US trade policy and higher taxes.