The prime ministers of Australian and the UK have pledged greater investment in green hydrogen and offshore wind during their first meeting in Samoa.