Large Language Models Struggle to Learn Long-Tail Knowledge