Frustrated electronic phase separation and high-temperature superconductors