Ex-NBA champion agrees to deal with 76ers