Most young people know about giving consent for sex, but have trouble in some scenarios, survey shows