The prime minister has flagged major changes to Australia's gun laws after the nation's worst mass shooting in nearly three decades.