Vladimir Putin investigated millions of civil servants to test their 'loyalty' and weed out 'threats': report