Measurement of beauty production from dimuon events at HERA