A church tower in Conwy which dates back more than 800 years will undergo urgent repairs after funding for the work was secured.