A dependent partition-valued process for multitask clustering and time evolving network modelling