Mustafizur Rahman completed his five-wicket haul in the final ball of the innings as Bangladesh restricted India to 314-9 at the ICC World Cup.