Amsterdam-based online food delivery firm Takeaway.com has agreed to buy Just Eat in an all-share deal valuing the combined group, which will be one of the sector's largest, at about 8.2 billion pounds ($10.1 billion).