Former leftist rebel commander Salvador Sanchez Ceren has won last Sunday's presidential election in El Salvador, the Supreme Electoral Tribunal said.