An 18-month political stalemate and sporadic sectarian and political violence hampered economic activity , particularly tourism , retail sales , and investment , until the new government was formed in July 2008 .