Warning by defence secretary comes as he opens a tank gun barrel factory in the West Midlands