The UK has said it will contribute drones, fighter jets and a warship to a joint mission aimed at safeguarding shipping in the Strait of Hormuz.