Aligning Large Language Models to Follow Instructions and Hallucinate Less via Effective Data Filtering