A hat-trick from Darren Cave helped Ulster to a four-try bonus point 26-7 win over Leicester, which knocked the English club out of the European Champions Cup.