Landlords cut deals with charities to reduce tax bills