India's Trinamool Congress Party is to resign from the country's governing coalition in protest over plans to open the door to foreign investment in the retail sector.