Study of the reactions B→D∗ππ and B→D∗ ϱπ