A double branching model for earthquake occurrence