Facebook invests billions in metaverse efforts as ad business suffers