Number-conserving analysis of measurement-based braiding with Majorana zero modes