Software stocks are slumping. The reasons behind the downturn and the 4 best investments to make now, according to UBS and C-suite executives.