Time-dependent coupled-cluster method for atomic nuclei