A constitutive model for cyclically loaded shallow foundations