Memory effects in soft matter