UK has failed to prepare for war, former defence ministers claim