Rupee settles near an all-time closing low as trade deficit widens