Primordial gravitational waves from NANOGrav: A broken power-law approach