Sir Kenneth Branagh, who was due to work on a film with Harvey Weinstein, has said he is "astonished and appalled" by the allegations against the disgraced producer.