Obama: Still time for diplomacy with Iran