Calculation of frequency-dependent polarizabilities using coupled-cluster response theory