what was the reformation and why did it happen