Global warming over the 20th century has produced the hottest global average temperatures in 1400 years, a major scientific study has found.