Hvis ikke Iran inden for 48 timer laver en aftale med USA, vil det få konsekvenser, siger USA's præsident.