On an asymptotic formula of Ramanujan for a certain theta-type series