The US defence secretary has said he is ending "woke" culture and political correctness, telling top brass: "We are done with that s***."