A single-atom quantum memory