Rupee weakens against dollar