Guidance has been published by the Office for Students on new free speech rules coming into force this year.