Oil prices weaken at end of week