Allegations of historical sexual abuse at a secondary school in the Scottish Borders are being investigated by police.