Meta has announced it will lay off roughly 10% of its global workforce as the social media giant pivots even more aggressively towards artificial intelligence.