The US government has announced charges against six Guantanamo Bay detainees over the September 11 attacks, including alleged mastermind Khalid Sheikh Mohammed.