Giving Tuesday has raised $3.1 billion for charitable causes on its 10th anniversary, a record amount even though the economy suffers from high inflation.