A resignation letter sent to the Prime Minister by his ethics adviser has described how he was put in "an impossible and odious position" shortly before he quit