Under the original deal , Tehran was to have maintained the freeze while the IAEA investigates U.S. allegations that Iran is secretly trying to develop nuclear weapons .