Swiss government says it has reached agreement with UBS on loss guarantees