Fighting broke out north of Yemen's capital and in the centre of the country on Sunday, killing more than 20 people, hours before a truce was due to come into force to facilitate peace talks.