Prime minister says UK is working with allies on a plan to reopen the Strait of Hormuz but admits ending blockade is not ‘straightforward’