British, Irish prime ministers hold Brexit talks