Nomar retires as a member of Red Sox