Storage and retrieval of vector beams of light in a multiple-degree-of-freedom quantum memory