The Nasdaq index reversed early declines to hit a record high on Tuesday, helped by a rise in growth-linked megacap…