What are the main causes of cavities?