Dividend stocks may be the way to go for investors as a recession becomes more likely, according to UBS.