Pedro Sánchez says he will remain in office as Spain’s prime minister