Swiss lawmakers have introduced a bill to legalize recreational cannabis in an effort to curb the illegal market.