Germany's Rheinmetall has struck a deal to take over a warship builder, both companies said, the defence giant's latest expansion to meet booming demand as European countries rush to rearm. European countries have been racing to build up their militaries since Russia's 2022 invasion of Ukraine.