The US and Iran failed to reach an agreement after marathon 21-hour talks in the Pakistani capital Islamabad throwing the two-week Middle East ceasefire into doubt.