Copper climbs on dollar weakness but ends January lower