Sotheby’s reaches deal with activist investor Loeb