Scientists have found a way to predict whether babies will develop asthma or allergies