Investigating the influence of natural selection on the genetic architecture of molecular traits