Rupee weakens against the US dollar