Centre-left opposition candidate Alberto Fernandez has been elected the president of Argentina in a vote dominated by economic concerns.