US president says any potential agreement with Tehran will be 'good and proper' as mediation efforts continue.