describe the upheaval in the roman catholic church in the late middle ages