The AUKUS alliance has been savaged by former Prime Minister Malcolm Turnbull, calling it "a terrible waste of money".