A Decentralized Privacy-Preserving Data-Driven Methodology for Energy Trading in the Smart Grid