Germany remained the bloc's biggest host of foreign-born people, with nearly 18 million residents, 72% of whom were of working age.