Strength and failure of cemented granular matter