The unemployment rate in Massachusetts inched upward in January, remaining a shade higher than the rate for the country as a whole, officials announced Friday.