Systems and methods to detect rare mutations and copy number variation