The use of cash has been declining in recent years, according to the Federal Reserve's 2024 report on consumer payments.