I've seen a few people towing trailers with their Model S, and it definitely affects the range. How much depends on factors like the weight of the trailer, the speed you're driving, and the terrain.
I'd recommend doing some research and maybe even reaching out to a Tesla owner's group to see...