India-based edible oil and soy foods group Ruchi Soya has agreed a deal to sell a 51% stake in the company to Asian merchant bank Devonshire Capital.