US retail giant Wal-Mart has beaten off UK rival Tesco to sign a store deal in the fast-growing Indian market.