Ken Loach, the British film director, has won the top prize at the Cannes film festival for The Wind that Shakes the Barley - an epic set during Ireland's struggle for independence in the 1920s.