Stability of dusty rings in protoplanetary discs