Egypt has been trying to get the two groups to form a unity government , but tensions between the rival factions have been rising , with recent deadly clashes in the West Bank .