The GAPS Programme with HARPS-N at TNG XV. A substellar companion around a K giant star identified with quasi-simultaneous HARPS-N and GIANO measurements