Google has completed the acquisition of Mandiant, a publicly-traded American cybersecurity firm, in a $5.4 billion deal.