Former government adviser Prof Neil Ferguson will not face police action after he accepted making an "error of judgment&qu