Un-needed branded drugs “cost NHS millions”