Coffee and precious metals lead gains in commodity markets in January