Optimal de-anonymization in random graphs with community structure