The latitude belts of solar activity as a consequence of a boundary-layer dynamo