Factory owners and trade union leaders in Bangladesh have agreed a new monthly minimum wage for garment workers in a deal that they hope will end months of street protests.