After meeting with Angela Merkel and other European leaders in Berlin, Barack Obama ended his last visit to Europe as US President.