Minn. gas prices hit $4 a gallon