Inverness' hopes of European football next season were crushed by a 1-0 defeat to Highland rivals Ross County.