Prime minister Pedro Sánchez welcomes Socialists' win in election