Researchers found that companies donating the same total amount spread over time are viewed more favorably than those giving lump sums.