Andrew RT Davies resigned on Tuesday after admitting his position was untenable despite narrowly winning a vote of confidence.