Dan Ives of Wedbush Securities predicts a coming shift in the AI market that will favor a handful of stocks including Palantir and MongoDB.