AI and Google Cloud led the way for Google parent company Alphabet to break the $400 billion annual revenue mark for the first time in its history.