Kenneth Branagh has signed up to direct a biopic about the Bee Gees.