Just Eat has sold its US business Grubhub to the food delivery startup Wonder for 650 million dollars (£502.5 million), more than two years after it announced plans for a sale.