Group-finding with photometric redshifts: the photo-z probability peaks algorithm