A 700-year-old Dorset church has received vital funds to help save it from collapsing