The statistics of peaks of Gaussian random fields