Andy Murray won his first Wimbledon title and ended Britain's 77-year wait for a men's champion with a hard-fought victory over world number one Novak Djokovic.