I kriser ska staten få gripa in och flytta läkemedel mellan apotek och sjukhus, föreslår en utredning.