The UK government ignored warnings about human rights concerns over selling arms to Saudi Arabia from one of its own advisers, even though it was told there were "gaps in knowledge" over the kingdom's military operations.