Vladimir Putin wanted a "total cleansing" of Ukraine when he ordered his invasion last year, leaked spy documents have revealed.