Saudi Arabia has emerged as the biggest foreign customer for German arms, buying nearly a quarter of Germany's total weapons sales.