Reasoning with Latent Thoughts: On the Power of Looped Transformers