Former defence ministers are wrong to issue a stark warning that the UK is unprepared for war as a “whole-nation endeavour”, the deputy prime minister has said.