People who are overweight cut their life expectancy by two months for every extra kilogramme of weight they carry, research suggests.