Indian Textile Minister Dayanidhi Maran has resigned following allegations that he was involved in the country's biggest corruption scandal involving telecoms licences.