Ariad’s CEO will retire this year in a settlement with hedge fund Sarissa Capital, capping months of agitation.