Tehran's statement on opening of key waterway comes as US President Trump says talks are taking place to end the war.