Bernstein says investors should take profits in pricey tech stocks such as Nvidia and these others