Scotland’s social care and mental wellbeing minister has promised action will be taken at a mental health facility at the centre of cruelty allegations.