The GAPS programme with HARPS-N at TNG III: The retrograde orbit of HAT-P-18b