Alphabet topped expectations with another quarter of strong revenue and profit growth, fueled by resilient advertising sales and continued momentum in Google.