Spain produced 37.8% of its electricity from renewables in August, grid operator Red Electrica de Espana (REE) said in its latest preliminary report.