Karachi stocks end higher; rupee weakens