The former Prime Minister was critical of the performance of Wales' devolved government, newly-released cabinet papers show