Hamlin holds off Keselowski for fifth Cup victory of season