A newborn baby has been taken to hospital as a precaution following a crash in Caerphilly early this afternoon.