Secondary school bans pupils from hugging or having relationships