A five-judge bench headed by Chief Justice Chandrachud said the court cannot quash the resignation submitted by Thackrey