A group of investors led by the owner of several boutique New York hotels agreed to take Soho House & Co. private in a $2.7 billion deal for the members’ club operator that’s struggled since its initial public offering.