Nasdaq closes at record high, lifted by Apple