The UK and Nigeria have signed their first ever security and defence partnership, in an attempt to help Nigeria defeat Boko Haram.