Swiss bank UBS lost 349 million Swiss francs ($356 million) by investing in Facebook shares, more than halving its profits.…