The Psychology of Loyalty: A Solution to Hume's Problem of Moral Obligation