Strong household spending, rising state expenditure and higher company investments have consolidated Germany’s role as the eurozone growth engine in the second quarter, although accelerating imports meant growth came in just below expectations.