Swiss bank UBS reports a loss for the whole of 2007, hit by bad investments in US sub-prime home loans.