One Direction's Louis Tomlinson made a heart-warming gesture to a charitable cause just hours after attending the funeral of bandmate Liam Payne, who tragically died last month