Text this: A Cooperative Learning Approach for Decentralized Peer-to-Peer Energy Trading Markets and its Structural Robustness Against Cyberattacks