Bahrain left London with its first ever Olympic medal, won by middle-distance runner Maryam Yusuf Jamal in the women's 1500 metres.