VEC-SBM: Optimal Community Detection with Vectorial Edges Covariates