Rosie Duffield has become the first Labour MP to resign from the party since it came to power in July.