Unveiling $ν$ secrets with cosmological data: neutrino masses and mass hierarchy