Tesco has signed a deal to become the first foreign supermarket to enter India's £330bn ($500bn retail sector.