Meta will cut about 5% of its staff, focusing on its lowest-performing workers, CNBC confirmed.