Looped Transformers as Programmable Computers