What is the origin of the phrase catching a cold?

The phrase catching a cold is an idiom since you cannot physically catch an illness. This phrase has been around for hundreds of years but there is no indication as to when it originated.