French president says US attacks on Iran have 'no legal basis'