Iran 'more resilient' in war with US than anyone expected: ex-British spy chief