The contribution of light Majorana neutrinos to neutrinoless double beta decay and cosmology