Talks begin in Rome aimed at ending divisions between rival factions in Libya amid a continuing threat there from Islamic State militants.