The Scottish government has advised all organisers to cancel or postpone any events involving more than 500 people, both indoors and outdoors.