UCLA snaps four-game losing skid to rival USC