Gravitino dark matter and cosmological constraints