Star Formation Histories of Dwarf Galaxies from the Colour-Magnitude Diagrams of Their Resolved Stellar Populations