Optimal Cluster Recovery in the Labeled Stochastic Block Model