Nico Rosberg took full advantage of one of Formula One's greatest tactical errors to land an unexpected victory and become only the fourth man to claim a hat-trick of consecutive wins in the Monaco Grand Prix.