Compression garment having a foam layer