Mark Rylance has resigned as an associate artist of the Royal Shakespeare Company because of its continued sponsorship by fossil-fuel giant BP.