A gold pocket watch given to the ship captain who rescued 700 survivors from the Titanic has sold at auction for nearly $2 million.