NoMaD: Goal Masked Diffusion Policies for Navigation and Exploration