Celtics legend Paul Pierce announces he will retire