Asymptotic analysis ofa diffuse interface relaxation to a nonlocal optimal partitionproblem