Receding Horizon based Cooperative Vehicle Control with Optimal Task Allocation