Molecular mechanisms underlying the genetic architecture of complex traits