Twenty-three Guantanamo Bay detainees tried to hang or strangle themselves at the US military base during a mass protest in 2003, the military has confirmed.