Fair Resource Allocation in Multi-Task Learning