Ruth Davidson is on the verge of resigning as leader of the Scottish Conservatives, with a statement likely on Thursday.