Rakuten, Japan's leading internet retailer, has acquired US rival Buy.com in an all-cash transaction for an undisclosed sum.