Voluntary AI ethics code could come ‘within weeks’, EU chief says