On-edge Multi-task Transfer Learning: Model and Practice with Data-driven Task Allocation