Nuclear magnetic resonance studies of magnetic fluctuations and nematic order in iron-based superconductors