Patriots legend Edelman retires from NFL