Canberra will no longer recognise West Jerusalem as the capital, four years after changing its stance.