Knowledge of sexually transmitted infections and risky behaviours: a survey among high school and university students