Lancashire is to get more than £35m to strengthen bus services in the county.