Charge Density Waves and Electronic Nematicity in the Three Band Model of Cuprate Superconductors