UFC legend retires after brutal title fight defeat