gold futures end the week with a nearly 5% loss