Either you have to go board level permissions board -> permissions and set it up for each group. To make them not create topics or posts
Or create a new permission profile under admin -> permissions copy the read only permission then modify the permission set to allow certain membergroups to post