The United States officially opened its embassy to Israel in Jerusalem, fulfilling a pledge by President Donald Trump who has recognised the holy city as the Israeli capital.