Minimum heat dissipation in measurement-based quantum computation