The majority of people in Scotland said they disagree with measures to release prisoners earlier to deal with overcrowding, a new poll reveals.