On Milnor $K$-theory in the imperfect residue case and applications to period-index problems