Community Detection in networks by Dynamical Optimal Transport Formulation