Community Detection in Sparse Random Networks