Spain’s main opposition party elects moderate new leader