Consumer-staples stocks have fallen 13% this year as investors once attracted to the steady payouts of companies selling goods like breakfast cereal, toothpaste and razors shop elsewhere.