Spinning membranes on $AdS_p\times S^q$