David Lammy embroiled in bisexual flag row as Foreign Office accused of breaking law