Just figuring out what it costs to get a college degree can deter some people from going to school, a new study suggests.