Rupee marginally weakens against US dollar