British companies worth £145bn were snapped up in 2024 - with just over half of the sum involving foreign buyers.