A "landmark" pact between London and Berlin will also pave the way for a German defence company to open an artillery gun barrel factory in Britain which will create more than 400 jobs.