Prime minister said ‘significant gaps’ had emerged over the management of the war