Ben Duckett ended his wait for a three-figure score before England were undone by spin in their one-day international series decider against Australia at Bristol.