A fragment of a jawbone found deep underground in a cave in Somerset has rewritten the story of when and how dogs became our best friends.