Japanese pharmaceutical group Daiichi Sankyo Co said on Wednesday that it had agreed to buy a majority stake in India's top drug company Ranbaxy Laboratories for up to $4.6 billion. The deal reflects growing efforts by the world's pharmaceutical giants to cope with fierce competition from generic drugmakers based in low-cost economies such as India.