Australia has followed Canada's decision to recognise Palestine as a sovereign state, Prime Minister Anthony Albanese writes.