Place beans, chorizo, ham and bacon in a pot with enough water to cover. Bring to a boil and reduce heat, simmer for 2 hours. Add vegetables and garlic and continue to simmer until the vegetables are very tender. Add more stock as necessary. Season with salt and pepper and serve.