Alliance Trust has brought to an end a bitter battle with a US hedge fund by snapping up the shares owned by the American investor.