The body will also retain more water and salt. This can cause weight gain and swelling in the legs, ankles and feet.