Chart shows majority of Republicans say socialism restricts people’s freedoms; many Democrats say it ensures people’s needs are met