I suspect that comes from an open input.
Your readings match for a 7-position switch and corresponding 6-resistor string, but you seem to have an 8-or-more position switch? A capacitor is not the right solution here, you need to correct your resistor/switch circuit.