Angela Merkel said the continent can only rely on itself, in a veiled swipe at President Donald Trump.