As US equities sink to cheap levels and value stocks retake the spotlight, UBS identifies 40 attractive companies to buy using an algorithm that's outperformed by 30% since 2020