Griffiths effects and slow dynamics in nearly many-body localized systems