Mamata Banerjee offers to resign