Rand strengthens against the dollar as SA avoids a recession