Improved energy resolution of highly segmented HPGe detectors by noise reduction