Alphabet’s shares plunged 12.6% after its latest earnings highlighted the financial strain of AI investment, even as Google Cloud revenue more than doubled.