A complete vote count in Sweden's national election shows a narrow majority for the left-leaning opposition over the conservative-led government.