Basically, the authors of the Flame malware were able to produce a fake intermediate certificate authority (deriving from one of Microsoft's legitimate certificate authorities) because the signature algorithm was weak (in this case, they used MD5).
Some background: one way to validate that a message came from a specific source is to use public and private key cryptography (such as RSA). If I encrypt a copy of a piece of known data with my private key, you can then attempt to decrypt that piece of known data with my public key. You then know (since it's my private key) that the piece of data really came from me. This is the premise by which certificate signing works: if I get a digital certificate (saying, for example, to trust a publisher and run code that they provide), and it's been signed by (for example) Microsoft, I know that said certificate has been approved by Microsoft, and since I trust Microsoft, I run the code that came with that certificate (or, more specifically, the code that was then signed with the public key in that certificate).
Now, it's not terribly efficient to work with the whole piece of data when you want to sign something: it takes longer to transfer, and takes longer to verify. So, rather than encrypt and decrypt the whole certificate as part of the signing and verification process, we want to work with something smaller. That's where cryptographic hashes come in. Hash the data, then encrypt the hash instead. Then, when you want to verify the signature, you recalculate the hash of the (plain-text) data, decrypt the signature using the signer's public key, and if the two hashes match, then the plain-text data (in this case, our certificate) hasn't been tampered with and you can trust it.
This all works great, as long as you don't have a way to force the hash to become a known value when you give it a different text. In the case of MD5 (which is what the certificates involved in Flame used), you can do this-- with padding constructed in a specific way, I can produce whatever certificate I want, and make it look like Microsoft has approved it, without ever knowing Microsoft's private key, because the hash that they encrypted never changed. Mayhem then ensues, because I can now produce code that your computer trusts implicitly-- because, as far as it can tell, the code did come from Microsoft. Flame used this (IIRC) to forge Windows updates.
As to the retirement of SHA-1: that's more of a proactive measure. There aren't (AFAIK) any practical attacks against SHA-1 yet... but, by 2016, when MS retires the algorithm for certificate signing, computers will be faster and people will have had more time to find flaws in the math underlying the algorithm. Best to schedule its retirement before that happens (and hope it doesn't happen earlier).