Foo Fighters have been announced as headliners for the annual T in the Park festival, which takes place July 8-10 in Balado, Scotland.