Corruption eroding foundation of the country: President