Foreign firms snapped up £7.8 billion worth of UK companies over the latest quarter as the recent rise in international owners continued, according to official figures.