Members of the shadow cabinet have resigned in protest over leader Jeremy Corbyn's failure to persuade voters to back a remain campaign.