Dan Sundheim’s D1 Capital Partners exited or cut back large positions in big tech names and added to hotel and real estate holdings in the second quarter.