Tory MP resigns following parliamentary misconduct