President Donald Trump reversed decades of US policy on Wednesday by recognising Jerusalem as the capital of Israel.