DraftKings Inc. has joined Wayfair Inc., HubSpot Inc. and other publicly traded tech companies in Massachusetts in laying off workers.